#include "AboutDialog.h"

#include "ui_about.h"

AboutDialog::AboutDialog(QWidget *parent)
	: QDialog(parent)
        , ui(new Ui::AboutDialog())
{
    ui->setupUi(this);
}

AboutDialog::~AboutDialog()
{
    delete ui;
}

/*!
  \brief Return the instance of the About dialog.
  This method is first called during the construction of the QMainWindow,
  and at this time the instance is initialized with the main window as its
  \a parent.  With this invariant, the method is thread-safe, otherwise it
  is not.  On subsequent calls the already initialized instance is returned
  and any argument is ignored.
 */
AboutDialog *AboutDialog::dialog(QWidget *parent)
{
    static AboutDialog *dlg = 0;
    if (dlg == 0)
        dlg = new AboutDialog(parent);
    return dlg;
}
